xen.git
19 years agoAdd find_domain_rcu_lock() and domain_rcu_unlock().
kfraser@localhost.localdomain [Wed, 21 Feb 2007 16:33:34 +0000 (16:33 +0000)]
Add find_domain_rcu_lock() and domain_rcu_unlock().

Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoUse RCU for domain_list and domain_hash.
kfraser@localhost.localdomain [Wed, 21 Feb 2007 16:13:49 +0000 (16:13 +0000)]
Use RCU for domain_list and domain_hash.

Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Wed, 21 Feb 2007 14:44:09 +0000 (14:44 +0000)]
Merge

19 years agox86: Better BUG() and ASSERT() logging.
kfraser@localhost.localdomain [Wed, 21 Feb 2007 14:40:37 +0000 (14:40 +0000)]
x86: Better BUG() and ASSERT() logging.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: Allow exceptions to be handled while interrupts are
kfraser@localhost.localdomain [Wed, 21 Feb 2007 10:13:40 +0000 (10:13 +0000)]
x86: Allow exceptions to be handled while interrupts are
disabled. Handlers must take special care if necessary.
Fixes the debug 'd' key.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdded C bindings for host.supported_bootloaders.
Ewan Mellor [Wed, 21 Feb 2007 00:04:59 +0000 (00:04 +0000)]
Added C bindings for host.supported_bootloaders.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix allocation of the error_description fields.
Ewan Mellor [Wed, 21 Feb 2007 00:04:06 +0000 (00:04 +0000)]
Fix allocation of the error_description fields.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoPut the set size in the structure on set-allocation.
Ewan Mellor [Tue, 20 Feb 2007 23:59:13 +0000 (23:59 +0000)]
Put the set size in the structure on set-allocation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded host.supported_bootloaders field.
Ewan Mellor [Tue, 20 Feb 2007 22:54:30 +0000 (22:54 +0000)]
Added host.supported_bootloaders field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove host.create and host.destroy -- these never made any sense.
Ewan Mellor [Tue, 20 Feb 2007 22:46:21 +0000 (22:46 +0000)]
Remove host.create and host.destroy -- these never made any sense.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded modelling and C bindings for VIF/VBD QoS parameter setting. No Xend
Ewan Mellor [Tue, 20 Feb 2007 22:40:55 +0000 (22:40 +0000)]
Added modelling and C bindings for VIF/VBD QoS parameter setting.  No Xend
implementation yet.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoSplit the VIF I/O statistics fields out into a VIF_metrics class. Implement
Ewan Mellor [Tue, 20 Feb 2007 21:55:11 +0000 (21:55 +0000)]
Split the VIF I/O statistics fields out into a VIF_metrics class.  Implement
this in Xend, and fix the VBD_metrics implementation.  Implement C bindings
also.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoSplit the VBD I/O statistics out into a VBD_metrics class. Document the
Ewan Mellor [Tue, 20 Feb 2007 21:28:19 +0000 (21:28 +0000)]
Split the VBD I/O statistics out into a VBD_metrics class.  Document the
VBD.type field, and add it to the C bindings (this was already in Xend).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded Console.other_config to the docs (Xend already has this).
Ewan Mellor [Tue, 20 Feb 2007 19:38:24 +0000 (19:38 +0000)]
Added Console.other_config to the docs (Xend already has this).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRename Console.uri to location. Xend already uses the latter.
Ewan Mellor [Tue, 20 Feb 2007 19:23:28 +0000 (19:23 +0000)]
Rename Console.uri to location.  Xend already uses the latter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove VM.VCPUs_number and VM.VCPUs_utilisation as these have moved onto the
Ewan Mellor [Tue, 20 Feb 2007 16:30:24 +0000 (16:30 +0000)]
Remove VM.VCPUs_number and VM.VCPUs_utilisation as these have moved onto the
VM_metrics class.  Remove VM_metrics.VM -- the backreference is unnecessary
and awkward to deal with.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReplace the X_HANDLE_INVALID error codes with a single HANDLE_INVALID that
Ewan Mellor [Tue, 20 Feb 2007 15:24:01 +0000 (15:24 +0000)]
Replace the X_HANDLE_INVALID error codes with a single HANDLE_INVALID that
names the class as a parameter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agohvm: Fix getvcpucontext to return the correct CR3 value.
kfraser@localhost.localdomain [Tue, 20 Feb 2007 23:54:42 +0000 (23:54 +0000)]
hvm: Fix getvcpucontext to return the correct CR3 value.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Fix MMIO AND emulation
Tim Deegan [Tue, 20 Feb 2007 20:49:44 +0000 (20:49 +0000)]
[HVM] Fix MMIO AND emulation
which was falling though into AND...
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Fix MMIO LODS emulation
Tim Deegan [Tue, 20 Feb 2007 20:02:49 +0000 (20:02 +0000)]
[HVM] Fix MMIO LODS emulation
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agox86 emulation: fix bswap
kfraser@localhost.localdomain [Tue, 20 Feb 2007 17:05:50 +0000 (17:05 +0000)]
x86 emulation: fix bswap

REX.R needs to be decoded. Since it is simple to do, faster, and
smaller, let hardware do 32- and 64-bit BSWAP. 16-bite BSWAP is
undefined: emulate with observed behaviour (write zero).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: Fix emulation of REP prefix.
kfraser@localhost.localdomain [Tue, 20 Feb 2007 16:57:50 +0000 (16:57 +0000)]
x86: Fix emulation of REP prefix.
Firstly, it should be ignored when used with any opcode for which it
is undefined. Secondly, the count register (rCX) width depends on
address size.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Tue, 20 Feb 2007 16:19:40 +0000 (16:19 +0000)]
Merge

19 years ago[HVM] Another unchecked caller of hvm_copy_to_guest_virt()
Tim Deegan [Tue, 20 Feb 2007 16:18:56 +0000 (16:18 +0000)]
[HVM] Another unchecked caller of hvm_copy_to_guest_virt()
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoacm: More fixes after grant-table changes. These are all bugs
kfraser@localhost.localdomain [Tue, 20 Feb 2007 16:12:02 +0000 (16:12 +0000)]
acm: More fixes after grant-table changes. These are all bugs
introduced during merge of Isaku's previous patch. :-)
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoMerge
Tim Deegan [Tue, 20 Feb 2007 15:37:28 +0000 (15:37 +0000)]
Merge

19 years ago[XEN] Get rid of gva_to_gpa translation
Tim Deegan [Tue, 20 Feb 2007 15:37:03 +0000 (15:37 +0000)]
[XEN] Get rid of gva_to_gpa translation
It didn't have any sensible error checking.  Make all callers
use gva_to_gfn translation and check the result.  MMIO and PIO
callers inject pagefaults to the guest iof the non-IO address is
not mapped.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoadd /sbin to the $PATH and use ldconfig -p instead of ldconfig -v
Vincent Hanquez [Tue, 20 Feb 2007 14:12:12 +0000 (14:12 +0000)]
add /sbin to the $PATH and use ldconfig -p instead of ldconfig -v

19 years ago[XEN] Fix skip-verify shadow heuristic
Tim Deegan [Tue, 20 Feb 2007 13:57:26 +0000 (13:57 +0000)]
[XEN] Fix skip-verify shadow heuristic
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Fix swiotlb bug-out due to uninitialised end_pfn/max_mapnr.
kfraser@localhost.localdomain [Tue, 20 Feb 2007 12:27:03 +0000 (12:27 +0000)]
linux: Fix swiotlb bug-out due to uninitialised end_pfn/max_mapnr.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoadd /sbin to the $PATH for debian's ldconfig.
Vincent Hanquez [Tue, 20 Feb 2007 12:22:40 +0000 (12:22 +0000)]
add /sbin to the $PATH for debian's ldconfig.
use ldconfig -p instead of -v that doesn't require root privilege to work.

19 years agolinux/x86: Advertise which page table entries contain MFNs and hence
kfraser@localhost.localdomain [Tue, 20 Feb 2007 12:18:29 +0000 (12:18 +0000)]
linux/x86: Advertise which page table entries contain MFNs and hence
need to be (un)canonicalized during save/restore.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxen/x86: Better BUG back traces.
kfraser@localhost.localdomain [Tue, 20 Feb 2007 11:57:06 +0000 (11:57 +0000)]
xen/x86: Better BUG back traces.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix potential race in unshadow code
Tim Deegan [Tue, 20 Feb 2007 11:51:40 +0000 (11:51 +0000)]
[XEN] Fix potential race in unshadow code
And add some diagnostic printout in case it happens again
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux/x86: Clean up page table handling headers
kfraser@localhost.localdomain [Tue, 20 Feb 2007 09:41:32 +0000 (09:41 +0000)]
linux/x86: Clean up page table handling headers

- remove dead code
- fix line breaking and space vs. tab usage
- remove redundant parentheses

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoMerge
Tim Deegan [Tue, 20 Feb 2007 09:34:22 +0000 (09:34 +0000)]
Merge

19 years agolinux/x86: Adjust and fix page table handling.
kfraser@localhost.localdomain [Tue, 20 Feb 2007 09:33:14 +0000 (09:33 +0000)]
linux/x86: Adjust and fix page table handling.

Ensure that all and only those page table entries that have their
present bit set undergo p2m/m2p translation in all relevant places.
This should fix migration issues with _PAGE_PROTNONE pages which
previously could retain MFNs in PTEs while having the present bit
clear (and thus were not getting (un)canonicalized during save/
restore).

Many thanks to Keir Fraser for his analysis, suggestions, and
corrections.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoXenconsoled should ignore spurious watch event. Otherwise, it can rebind to the same...
john.levon@sun.com [Tue, 20 Feb 2007 04:44:42 +0000 (20:44 -0800)]
Xenconsoled should ignore spurious watch event. Otherwise, it can rebind to the same evtchn of a dying domU during suspending and cause below error message:
(XEN) event_channel.c:177:d0 EVTCHNOP failure: domain 0, error -22, line 177

19 years agoFilesystem implementations may need optional arguments in terms of
john.levon@sun.com [Tue, 20 Feb 2007 04:44:42 +0000 (20:44 -0800)]
Filesystem implementations may need optional arguments in terms of
what to mount. Add an options string to the libfsimage API.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agolinux: Fix 32-bit build after changeset 13993:168030c8e0a93d8401cf5e783e10ecdf0938abda
kfraser@localhost.localdomain [Mon, 19 Feb 2007 22:50:07 +0000 (22:50 +0000)]
linux: Fix 32-bit build after changeset 13993:168030c8e0a93d8401cf5e783e10ecdf0938abda
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] 32on64 shadowing / live migration support for PV PAE compat guests
Emmanuel Ackaouy [Mon, 19 Feb 2007 19:58:07 +0000 (19:58 +0000)]
[XEN] 32on64 shadowing / live migration support for PV PAE compat guests
PAE compat guests on 64bit hypervisors are shadowed
using 4-on-4 with special handling for the top level
L4 page and the L2E M2P mappings.

Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
19 years agoQuieten noisy fied-up-GPF-in-Xen logging.
kfraser@localhost.localdomain [Mon, 19 Feb 2007 16:16:53 +0000 (16:16 +0000)]
Quieten noisy fied-up-GPF-in-Xen logging.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Introduce {current_,}vcpu_info.
kfraser@localhost.localdomain [Mon, 19 Feb 2007 16:11:56 +0000 (16:11 +0000)]
linux: Introduce {current_,}vcpu_info.

Also consolidate time-xen.c in giving get_time_values_from_xen() a
'cpu' parameter to match other functions (this consolidation could of
course also be done the other way around, but I think this way the
resulting code can be more efficient).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoia64: Fixes after changes to grant table code.
kfraser@localhost.localdomain [Mon, 19 Feb 2007 16:06:03 +0000 (16:06 +0000)]
ia64: Fixes after changes to grant table code.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoacm: Further fixes after grant-table changes.
kfraser@localhost.localdomain [Mon, 19 Feb 2007 16:05:34 +0000 (16:05 +0000)]
acm: Further fixes after grant-table changes.
Based on a patch from Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix ACM build after recent grant-table code changes.
kfraser@localhost.localdomain [Mon, 19 Feb 2007 15:52:51 +0000 (15:52 +0000)]
Fix ACM build after recent grant-table code changes.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agohvm, vtpm: Fix wait for an outstanding response.
kfraser@localhost.localdomain [Mon, 19 Feb 2007 15:51:46 +0000 (15:51 +0000)]
hvm, vtpm: Fix wait for an outstanding response.
Post the interrupt upon reception of the response and adapt the
state machine.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agominios: Fix xenbus-id allocation loop.
kfraser@localhost.localdomain [Mon, 19 Feb 2007 15:50:29 +0000 (15:50 +0000)]
minios: Fix xenbus-id allocation loop.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years agohvm: Remove noisy warnings associated with MOVS emulation.
kfraser@localhost.localdomain [Mon, 19 Feb 2007 15:46:01 +0000 (15:46 +0000)]
hvm: Remove noisy warnings associated with MOVS emulation.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agohvm: Emulate opcode 0x03 (ADD mem,reg).
kfraser@localhost.localdomain [Mon, 19 Feb 2007 15:43:27 +0000 (15:43 +0000)]
hvm: Emulate opcode 0x03 (ADD mem,reg).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LIBELF] Prefer PT_NOTE segments to SHT_NOTE sections for ELF notes.
Ian Campbell [Mon, 19 Feb 2007 12:21:41 +0000 (12:21 +0000)]
[LIBELF] Prefer PT_NOTE segments to SHT_NOTE sections for ELF notes.

It's always an error to try to use sections on an executable; the
segments in the phdr are definitive.

Unfortunately we cannot drop SHT_NOTE support completely due to a
binutils bug which causes kernels to have the offset field of the
PT_NOTE phdr set to zero:

http://sourceware.org/bugzilla/show_bug.cgi?id=594

This bug is present in binutils 2.17 although some distros have
backported the fix.

Therefore we simply prefer a PT_NOTE segment if we find one otherwise
we still use the SHT_NOTE section (and then the old __xen_guest
section).

Based on a patch from Jeremy Fitzhardinge.

Also added XEN_ELFNOTE_HV_START_LOW to readnotes.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agohvm: Support PUSH from mmio area (opcode 0xFF/6).
Keir Fraser [Sun, 18 Feb 2007 15:29:40 +0000 (15:29 +0000)]
hvm: Support PUSH from mmio area (opcode 0xFF/6).
Also fix a bogus assertion in vlapic device model.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: vmalloc_sync_all() is not a no-op when running in PAE mode on Xen.
Keir Fraser [Sat, 17 Feb 2007 13:26:33 +0000 (13:26 +0000)]
linux: vmalloc_sync_all() is not a no-op when running in PAE mode on Xen.
Also vmalloc_sync_all() is only defined for x86 architectures so make
use of it in driver code conditional on CONFIG_X86.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix 64-bit build.
kfraser@localhost.localdomain [Sat, 17 Feb 2007 09:59:00 +0000 (09:59 +0000)]
Fix 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TAPDISK] add tapdisk support for image chaining
Jake Wires [Sat, 17 Feb 2007 04:31:27 +0000 (20:31 -0800)]
[TAPDISK] add tapdisk support for image chaining

Enables tapdisk to chain an arbitrary number of VDIs, propagating reads of
holes in children to their parent images.  Introduces two new functions to the
tapdisk interface to facilitate this.  Modifies the QCoW plugin to take
advantage of these changes, thus providing support for arbitrarily long chains
of QCoW image types.

19 years agox86-64: fix Lx_DISALLOW_MASK
kfraser@localhost.localdomain [Fri, 16 Feb 2007 16:34:28 +0000 (16:34 +0000)]
x86-64: fix Lx_DISALLOW_MASK

x86-64's Lx_DISALLOW_MASK values weren't properly taking care of the
NX bit, L3 and L4 were needlessly customized, and the compat mode L3
one wasn't really matching native PAE.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux/x86_64: miscellaneous initialization code cleanup
kfraser@localhost.localdomain [Fri, 16 Feb 2007 16:05:01 +0000 (16:05 +0000)]
linux/x86_64: miscellaneous initialization code cleanup
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agohvm: Processor Objects require unique IDs.
kfraser@localhost.localdomain [Fri, 16 Feb 2007 15:50:02 +0000 (15:50 +0000)]
hvm: Processor Objects require unique IDs.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agohvm: Dynamically generate the correct number of ACPI Processor Objects
kfraser@localhost.localdomain [Fri, 16 Feb 2007 15:33:51 +0000 (15:33 +0000)]
hvm: Dynamically generate the correct number of ACPI Processor Objects
in an SSDT.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Set p2m page count-info fields properly on allocation.
Tim Deegan [Fri, 16 Feb 2007 13:10:00 +0000 (13:10 +0000)]
[XEN] Set p2m page count-info fields properly on allocation.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore: explicitly name MSRs in save format
Tim Deegan [Fri, 16 Feb 2007 12:34:30 +0000 (12:34 +0000)]
[HVM] Save/restore: explicitly name MSRs in save format
Signed off by: Mats Petersson (Mats.Petersson@amd.com)

19 years agoFix grant-table initialisation so that domain destruction does not barf.
kfraser@localhost.localdomain [Fri, 16 Feb 2007 12:13:33 +0000 (12:13 +0000)]
Fix grant-table initialisation so that domain destruction does not barf.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: remove {lock,unlock}_vm_area(). Instead use vmalloc_sync_all()
kfraser@localhost.localdomain [Fri, 16 Feb 2007 11:24:10 +0000 (11:24 +0000)]
linux: remove {lock,unlock}_vm_area(). Instead use vmalloc_sync_all()
in alloc_vm_area().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix vncdisplay config option for HVM guests.
kfraser@localhost.localdomain [Fri, 16 Feb 2007 09:57:25 +0000 (09:57 +0000)]
Fix vncdisplay config option for HVM guests.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
19 years agohvm: Fix acpi processor id in MADT LAPIC entries.
kfraser@localhost.localdomain [Thu, 15 Feb 2007 19:03:09 +0000 (19:03 +0000)]
hvm: Fix acpi processor id in MADT LAPIC entries.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoia64: Fix build failure
kfraser@localhost.localdomain [Thu, 15 Feb 2007 18:05:05 +0000 (18:05 +0000)]
ia64: Fix build failure
Signed-off-by: Alex WIlliamson <alex.williamson@hp.com>
19 years ago[HVM] Save/restore: remove u8 from publich header
Tim Deegan [Thu, 15 Feb 2007 14:58:43 +0000 (14:58 +0000)]
[HVM] Save/restore: remove u8 from publich header
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoRemove unnecessary check from HVM builder.
kfraser@localhost.localdomain [Thu, 15 Feb 2007 14:38:08 +0000 (14:38 +0000)]
Remove unnecessary check from HVM builder.
Thanks to Guy Zana for spotting this.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoLift physical address restriction in save/restore code.
kfraser@localhost.localdomain [Thu, 15 Feb 2007 14:28:01 +0000 (14:28 +0000)]
Lift physical address restriction in save/restore code.
Bump this to 44 bits for x86-32 and 52 bits for x86-64.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoPropagate error return from elf_xen_parse().
kfraser@localhost.localdomain [Thu, 15 Feb 2007 14:25:58 +0000 (14:25 +0000)]
Propagate error return from elf_xen_parse().
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: fix NMI delivery to dom0
kfraser@localhost.localdomain [Thu, 15 Feb 2007 14:24:11 +0000 (14:24 +0000)]
x86: fix NMI delivery to dom0
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoBring TPM driver files to 2.6.18 level. Remove the tpm.c so that the
kfraser@localhost.localdomain [Thu, 15 Feb 2007 14:21:50 +0000 (14:21 +0000)]
Bring TPM driver files to 2.6.18 level. Remove the tpm.c so that the
one from the kernel can be used and reduce changes to a minimum
required to compile the xen-specific driver.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[ACM] Update the xensec_ezpolicy ACM policy generation tool so
kfraser@localhost.localdomain [Thu, 15 Feb 2007 14:20:05 +0000 (14:20 +0000)]
[ACM] Update the xensec_ezpolicy ACM policy generation tool so
that it works with wxPython under Python 2.5.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agominios: build system cleanups.
kfraser@localhost.localdomain [Thu, 15 Feb 2007 14:18:21 +0000 (14:18 +0000)]
minios: build system cleanups.

- Added ARCH_LDFLAGS for architecture specific LDFLAGS
- Fixed build dependencies after changing makerule files
- Fixed ARCH_CFLAGS for 64bit guest, added ARCH_ASFLAGS
- Couple of variable renames

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
19 years agoDisable GCC stack protector for ROMBIOS.
kfraser@localhost.localdomain [Thu, 15 Feb 2007 14:17:00 +0000 (14:17 +0000)]
Disable GCC stack protector for ROMBIOS.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
19 years agolinux: miscellaneous changes after upgrade through 2.6.17.
kfraser@localhost.localdomain [Thu, 15 Feb 2007 14:12:32 +0000 (14:12 +0000)]
linux: miscellaneous changes after upgrade through 2.6.17.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: e820 handling adjustments
kfraser@localhost.localdomain [Thu, 15 Feb 2007 14:05:58 +0000 (14:05 +0000)]
linux: e820 handling adjustments
In certain places, machine_e820 should be used rather than e820.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: user user_mode_vm() in place of user_mode() where necessary.
kfraser@localhost.localdomain [Thu, 15 Feb 2007 13:51:25 +0000 (13:51 +0000)]
linux: user user_mode_vm() in place of user_mode() where necessary.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: avoid need to modify include/linux/pfn.h
kfraser@localhost.localdomain [Thu, 15 Feb 2007 13:49:04 +0000 (13:49 +0000)]
linux: avoid need to modify include/linux/pfn.h
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: early_printk adjustments
kfraser@localhost.localdomain [Thu, 15 Feb 2007 13:40:33 +0000 (13:40 +0000)]
linux: early_printk adjustments

This is a little more than a pure merge with 2.6.17, to remove a few
more non-Xen items.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: proper mutex use in balloon driver
kfraser@localhost.localdomain [Thu, 15 Feb 2007 13:38:59 +0000 (13:38 +0000)]
linux: proper mutex use in balloon driver
Mutexes are supposed to not use the old semaphore technique anymore.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[VTPM] Add a missing initialization of a state variable in the TIS
kfraser@localhost.localdomain [Thu, 15 Feb 2007 13:36:58 +0000 (13:36 +0000)]
[VTPM] Add a missing initialization of a state variable in the TIS
device model so that the first response received after a resume is not
aborted.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agolibxc: Fix xc_vcpu_{set,get}_affinity (Xen-bugzilla No.900).
kfraser@localhost.localdomain [Thu, 15 Feb 2007 13:36:00 +0000 (13:36 +0000)]
libxc: Fix xc_vcpu_{set,get}_affinity (Xen-bugzilla No.900).
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=900

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoDynamic grant-table sizing.
kfraser@localhost.localdomain [Thu, 15 Feb 2007 10:54:12 +0000 (10:54 +0000)]
Dynamic grant-table sizing.
Signed-off-by: Christopher CLark <christopher.clark@cl.cam.ac.uk>
Signed-off-by: Andrei Petrov <andrei.petrov@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove unuseful and noisy seg-fixup warning message.
kfraser@localhost.localdomain [Thu, 15 Feb 2007 10:34:21 +0000 (10:34 +0000)]
Remove unuseful and noisy seg-fixup warning message.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove old elf-parsing code from tools and from Xen.
kfraser@localhost.localdomain [Thu, 15 Feb 2007 10:25:39 +0000 (10:25 +0000)]
Remove old elf-parsing code from tools and from Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago Protect self.domid from being empty
Wim Colgate [Wed, 14 Feb 2007 20:18:32 +0000 (12:18 -0800)]
Protect self.domid from being empty

19 years agoExport PRI_xen_pfn rather than PRIpfn: less polluting of namespace.
kfraser@localhost.localdomain [Wed, 14 Feb 2007 19:17:41 +0000 (19:17 +0000)]
Export PRI_xen_pfn rather than PRIpfn: less polluting of namespace.
libxc continues to use PRIpfn internally, #defined to PRI_xen_pfn.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge with xenppc-unstable.hg
kfraser@localhost.localdomain [Wed, 14 Feb 2007 19:01:35 +0000 (19:01 +0000)]
Merge with xenppc-unstable.hg

19 years agolibelf: use xen code style.
kfraser@localhost.localdomain [Wed, 14 Feb 2007 16:06:10 +0000 (16:06 +0000)]
libelf: use xen code style.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: quieten some driver printk logging.
kfraser@localhost.localdomain [Wed, 14 Feb 2007 16:05:28 +0000 (16:05 +0000)]
linux: quieten some driver printk logging.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAnother domctl fix to insert missing copy_to_guest.
kfraser@localhost.localdomain [Wed, 14 Feb 2007 15:54:47 +0000 (15:54 +0000)]
Another domctl fix to insert missing copy_to_guest.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years agoMerge
Tim Deegan [Wed, 14 Feb 2007 14:47:05 +0000 (14:47 +0000)]
Merge

19 years ago[XEN] Snapshot PAE l3es when they are shadowed.
Tim Deegan [Wed, 14 Feb 2007 14:46:18 +0000 (14:46 +0000)]
[XEN] Snapshot PAE l3es when they are shadowed.
We don't update the shadows so we mustn't look at the guest l3es
or we'll be confused by them if they change.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Re-sync PAE l3 shadows when PV guests change them
Tim Deegan [Wed, 14 Feb 2007 14:44:07 +0000 (14:44 +0000)]
[XEN] Re-sync PAE l3 shadows when PV guests change them
-in particular, for PAE Solaris guests
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoMake libelf not fail on unknown elf notes.
kfraser@localhost.localdomain [Wed, 14 Feb 2007 12:37:13 +0000 (12:37 +0000)]
Make libelf not fail on unknown elf notes.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years agoAdd missing breaks to {set,get}_address_size domctls.
kfraser@localhost.localdomain [Wed, 14 Feb 2007 12:35:36 +0000 (12:35 +0000)]
Add missing breaks to {set,get}_address_size domctls.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years agoFix DEC instruction decode. Turn into SUB, not OR. :-)
kfraser@localhost.localdomain [Wed, 14 Feb 2007 12:14:49 +0000 (12:14 +0000)]
Fix DEC instruction decode. Turn into SUB, not OR. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoSupport INC/DEC in mmio decoder. Opcodes 0xFE and 0xFF.
kfraser@localhost.localdomain [Wed, 14 Feb 2007 12:10:01 +0000 (12:10 +0000)]
Support INC/DEC in mmio decoder. Opcodes 0xFE and 0xFF.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] New paging-assistance interface.
Tim Deegan [Wed, 14 Feb 2007 12:02:20 +0000 (12:02 +0000)]
[XEN] New paging-assistance interface.
Adds paging_* functions, wrapping the existing shadow_* ones,
so that later hardware paging assistance can be hooked in at this level.
Separates p2m maintenance code into its own files.
Adjusts shadow code to comply with the new interfaces.
Changes all callers in arch/x86 to use the new interfaces.

Signed-off-by: Wei Huang <Wei.Huang2@amd.com>
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>